import http from '../utils/http'
import config from '../config/api'

const url = 'http://127.0.0.1:3000'
//登录

export const userLogin = (userName,password) =>{
    return http.get(url+config.userLogin+`?userName=${userName}&password=${password}`)
} 

//注册
export const userRegister = (data) =>{
    return http.post(url+config.userRegister,data)
} 

//修改密码
export const chgPassword = (userName,password) =>{
    return http.get(url+config.userChgPassword+`?userName=${userName}&password=${password}`)
} 
